import {http} from './request'
export const cartAPI={
    addCartItem:(data)=>http.secure.post('/carts',data),
    removeCartItem:(foodId)=>http.secure.delete(`/carts/${foodId}`),
    getCartItems:()=>http.secure.get('/carts'),
    updateCartItemQuantity:(foodId,data)=>http.secure.put(`/carts/${foodId}`,data),

}